//package com.erp.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer;
//import org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter;
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
//import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;
//
//
//@Configuration
//
//public class OAuth2AuthorizationServer extends AuthorizationServerConfigurerAdapter {
//
//
//    @Override
//    public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
//        //添加客户端信息 使用in-memory存储客户端信息
//        clients.inMemory()
//                //客户端标识 ID
//                .withClient("clientId")
//                //客户密钥
//                .secret("666666")
//                //客户端访问范围，默认为空则拥有全部范围
//                .scopes("read_userinfo")
//                //客户端使用的授权类型，默认为空
//                .authorizedGrantTypes(
//                        "password",
//                        "authorization_code",
//                        "refresh_token");
//    }
//}
